import Vue from 'vue'
import Router from 'vue-router'
import Welcome from '@/components/page/Welcome'
import Home from '@/components/common/Home'
import EquementList from '@/components/page/EquementList'
import FaultInfoList from '@/components/page/FaultInfoList'
import Login from '@/components/page/Login'

Vue.use(Router)

const routes = [
    {
      path: '/',
      redirect: '/login'
    },
    {
      path: '/welcome',
      component:Home,
      children:[
        {
          path: '/',
          component:Welcome
        },
        {
          path: '/welcome',
          component: Welcome
        },
        {
          path: '/equementList',
          component: EquementList
        },
        {
          path: '/faultInfoList',
          component: FaultInfoList
        },
      ]
    },
    {
      path: '/login',
      component: Login,
    }
  ]
export default new Router({
  mode: 'history',
  routes
})
